package com.kathony.jangpa.b.tasks;

import java.util.Date;
import java.util.Hashtable;
import java.util.Map;

public class LDStatus {
	public static final LDStatus NOSTATUS;
	public static final String NOSTATUS_MSG = "Status has never been updated";
	public static final int NOSTATUS_COD = -1;
		
	
	static {
		NOSTATUS = new LDStatus();
		NOSTATUS.setStatusCheckOk(false);
		NOSTATUS.setStatusDate(null);
		NOSTATUS.setStatusErrorCode(NOSTATUS_COD);
		NOSTATUS.setStatusErrorMessage(NOSTATUS_MSG);
	}
	
	protected Date statusDate = null;
	protected boolean statusCheckOk = false;
	protected String statusErrorMessage = NOSTATUS_MSG;
	protected int statusErrorCode = NOSTATUS_COD;
	protected Map<String,Object> statusCustomInfo=null;
	
	public void setStatusDate(Date statusDate){
		this.statusDate=statusDate;
	}
	
	public void setStatusCheckOk(boolean statusCheckOk){
		this.statusCheckOk=statusCheckOk;
	}
	
	public void setStatusErrorMessage(String statusErrorMessage){
		this.statusErrorMessage=statusErrorMessage;
	}
	
	public void setStatusErrorCode(int statusErrorCode){
		this.statusErrorCode=statusErrorCode;
	}
	
	public void setStatusCustomInfo(Map<String,Object> statusCustomInfo){
		this.statusCustomInfo=statusCustomInfo;
	}
	
	public Date getStatusDate(){
		return this.statusDate;
	}
	
	public boolean getStatusCheckOk(){
		return this.statusCheckOk;
	}
	
	public String getStatusErrorMessage(){
		return this.statusErrorMessage;
	}
	
	public int getStatusErrorCode(){
		return this.statusErrorCode;
	}
	
	public Map<String,Object> getStatusCustomInfo(){
		return this.statusCustomInfo;
	}
}
